package com.jonniespratley.generators.templates
{
	import flash.events.Event;

	/**
	 * 
	 * @author jonniespratley
	 * 
	 */	
	public class TemplateEvent extends Event
	{
		/**
		 * 
		 */		
		public static const	TEMPLATE_LOAD_SUCCESS:String = "TEMPLATE_LOAD_SUCCESS";
		
		/**
		 * 
		 */		
		public static const TEMPLATE_LOAD_FAILED:String = "TEMPLATE_LOAD_FAILED";
		
		/**
		 * 
		 */		
		public var templateData:String;
		
		/**
		 * 
		 * @param type
		 * @param templateData
		 * 
		 */		
		public function TemplateEvent( type:String, templateData:String = '' )
		{
			super( type );
			this.templateData = templateData;
		}
		
		/**
		 * 
		 * @return 
		 * 
		 */		
		override public function clone():Event
		{
			return new TemplateEvent( type, templateData );
		}
	}
}